<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/3
 * Time: 14:59
 */

namespace app\api\validate;


class PagingParameter extends BaseValidate
{
    protected $rule =[
        'size'=>'isPositiveInteger|max:30',
        'page'=>'isPositiveInteger',
        'type'=>'checkType'
    ];
    protected $message=[
        'size'=>'每页返回的数据条数必须是正整数，最大为30',
        'page'=>'页码必须是正整数',
        'type'=> '订单类型，非必须，取值["buyOrder", "recycleOrder"]，默认是buyOrder'
    ];

}